package net.aiion.weave.impl.bytecode.events;

import net.aiion.weave.spi.bytecode.BytecodeVisitor;
import net.aiion.weave.spi.bytecode.events.ClassEndBytecodeEvent;

public class ClassEndBytecodeEventImpl extends BytecodeEventImpl implements ClassEndBytecodeEvent
{
    private static final ClassEndBytecodeEvent INSTANCE = new ClassEndBytecodeEventImpl();

    public ClassEndBytecodeEventImpl() {
    }

    @Override
    public int getType() {
        return CLASS_END;
    }

    public static ClassEndBytecodeEvent getInstance() {
        return INSTANCE;
    }

    @Override
    public BytecodeVisitor acceptBytecodeVisitor(final BytecodeVisitor aBytecodeVisitor) {
        aBytecodeVisitor.asBytecodeClassVisitor().visitClassEnd(this);
        return null;
    }
}
